cmake_minimum_required(VERSION 3.12)

project(kalman)

set(CMAKE_CXX_STANDARD 17)

set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build/bin) 
set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build/lib) 
set(Eigen3_DIR D:/openlib/eigen/install/share/eigen3/cmake)

find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)


include_directories(".")
file(GLOB USER_SOURCE "*.cpp")
add_executable(${PROJECT_NAME} ${USER_SOURCE})

target_include_directories(${PROJECT_NAME} PUBLIC ${OpenCV_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIR})

target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
# message(STATUS ${PROJECT_SOURCE_DIR})
# message(STATUS ${USER_SOURCE})
# message(STATUS ".")
